function wyslijDane()
{
  var tfImie = document.getElementById('tfImie');
  var tfNazwisko = document.getElementById('tfNazwisko');
  var tfImieTekst = tfImie.value;
  var tfNazwiskoTekst = tfNazwisko.value;
  var err = false;

  if(tfImieTekst == ''){
    tfImie.style.backgroundColor = "#FFFF00";
    err = true;
  }
  else{
    tfImie.style.backgroundColor = "#FFFFFF";
  }
  if(tfNazwiskoTekst == ''){
    tfNazwisko.style.backgroundColor = "#FFFF00";
    err = true;
  }
  else{
    tfNazwisko.style.backgroundColor = "#FFFFFF";
  }
  if(err){
    alert("Proszę wypełnić wszystkie pola formularza!");
  }
  else{
    //kod wysyłający dane do serwera
  }
}
